<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/laydate.css"/>
    <link rel="stylesheet" href="css/laypage.css"/>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>



    <script src="js/resportForms/echarts.min.js"></script>
    <script src="js/date/laydate.js"></script>
    <script src="js/vue/vue.min.js"></script>
    <script src="js/jquery/jquery.min.js"></script>
    <script src="js/layer/layer.js"></script>
    <script src="js/laypage/laypage.js"></script>
</head>
<body>
      <div>nihao </div>
      <div id="main" style="width: 600px;height:300px;"></div>
      <div id="zhuxing" style="width: 600px;height:300px;"></div>
      <div id="twozhuxing" style="width: 600px;height:300px;"></div>

      <div class="layui-inline">
          <label class="layui-form-label">请选择日期</label>
          <div class="layui-input-inline">
              <input type="text" class="layui-input" id="test11" placeholder="请选择日期">
          </div>
      </div>
    <script>



          var arr =['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));
       var  option = {
           title: {
               text: 'ECharts 入门示例'
           },
           tooltip: {},
           legend: {
               data:['销量']
           },
            xAxis: {
                type: 'category',
                data: arr
            },
            yAxis: {
                type: 'value'
            },
            series: [{
                data: [820, 932, 901, 934, 1290, 1330, 1320],
                type: 'line'
            }]
        };
        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);


        var myChart1 = echarts.init(document.getElementById('zhuxing'));



       var  option1 = {
           title:{
               text:"考试成绩",
           },
            color: ['#3398DB'],
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis : [
                {
                    type : 'category',
                    data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
                    axisTick: {
                        alignWithLabel: true
                    }
                }
            ],
            yAxis : [
                {
                    type : 'value'
                }
            ],
            series : [
                {
                    name:'直接访问',
                    type:'bar',
                    barWidth: '60%',
                    data:[10, 52, 200, 334, 390, 330, 220]
                }
            ]
        };

        myChart1.setOption(option1);


        var myChart2 = echarts.init(document.getElementById("twozhuxing"));
        var option2  = {
            legend: {},
            tooltip: {},
            dataset: {
                source: [
                    ['product', '2015', '2016', '2017'],
                    ['Matcha Latte', 43.3, 85.8, 93.7],
                    ['Milk Tea', 83.1, 73.4, 55.1],
                    ['Cheese Cocoa', 86.4, 65.2, 82.5],
                    ['Walnut Brownie', 72.4, 53.9, 39.1]
                ]
            },
            xAxis: {type: 'category'},
            yAxis: {},
            series: [
                {type: 'bar'},
                {type: 'bar'},
                {type: 'bar'}
            ]
        };

        myChart2.setOption(option2)


          laydate.render({
              elem: '#test11'
              ,format: 'yyyy年MM月dd日'
          });
    </script>
</body>
</html>